//
//  WmcSharedWatermarkItem.swift
//  YPWatermarkCamera
//
//  Created by 赵新 on 2022/8/10.
//

import UIKit

class WmcShareWatermarkItem: WmcImgTextControl {

    lazy var iconBackgroundView: UIView = {
        let view = UIView()
        view.backgroundColor = .wmc_grayH18_F0F0F0
        view.layer.masksToBounds = true
        view.layer.cornerRadius = 24
        view.isUserInteractionEnabled = false
        return view
    }()
    
    override func layoutImgText() {
        addSubview(iconBackgroundView)
        iconBackgroundView.snp.remakeConstraints { make in
            make.top.centerX.equalToSuperview()
            make.size.equalTo(48)
        }
        
        iconBackgroundView.addSubview(imageView)
        imageView.snp.makeConstraints { make in
            make.center.equalToSuperview()
            make.size.equalTo(28)
        }
        
        label.snp.makeConstraints { make in
            make.top.equalTo(iconBackgroundView.snp.bottom)
            make.left.right.bottom.equalToSuperview()
        }
    }
    
}
